# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) YYYY Alexandros Fotiadis fotiadis90@gmail.com
# This program is free software: you can redistribute it and/or modify it 
# under the terms of the GNU General Public License version 3, as published 
# by the Free Software Foundation.
# 
# This program is distributed in the hope that it will be useful, but 
# WITHOUT ANY WARRANTY; without even the implied warranties of 
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
# PURPOSE.  See the GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along 
# with this program.  If not, see <http://www.gnu.org/licenses/>.
### END LICENSE


def run(win):
    from android_keyboard_lib.FuncLib import CheckDepends,readDevices,CheckADB,SetLoading,FinishtLoad,ConnectCurrentDevice

    

    #Set Form onLoad Status
    SetLoading(win)
    
   
    #Check Depends Applications
    
    CheckDepends(win)
    
    #Check ADB Process and start if not Running
    CheckADB(win)
    
    
    #Read Device List With adb devices and check Connenction
    readDevices(win)
    
    
    from android_keyboard_lib.FuncLib import config
    #if(config != None):ConnectCurrentDevice(win)
            
    FinishtLoad = True
    
    ###Start CheckDevices Thread
    
    
    
    
    
    
    
